<?php
namespace Models;
class CategoryModel extends  CommonModel {
    public function getAllCategories() {
        $sql = 'select id, title from categoies';
        $result = $this->db->query($sql);
        return $result->fetchAll();
    }
}